<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<%@ include file="/commons/nocache.jspf" %>
<%@ taglib uri="/FCKeditor" prefix="FCK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>购买管理</title>
<link href="${ctx }/css/admin/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
	color: #000000;
}
body {
	background-color: #F3F8FC;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a {
	font-family: 宋体;
	font-size: 12px;
	color: #000000;
}
a:visited {
	color: #000000;
}
a:hover {
	color: #FF3300;
}
a:active {
	color: #000000;
}
-->
#newPreview
{
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);
}
-->
</style>
<script type="text/javascript" src="${ctx }/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="${ctx}/scripts/commons/annext.js"></script>
<script type="text/javascript" src="${ctx}/scripts/commons/jquery-1.2.3.pack.js"></script>
<script type="text/javascript" src="${ctx}/scripts/commons/jquery.MultiFile.js"></script>
<script type="text/javascript">

		function PreviewImg(imgFile){
		    //新的预览代码，支持 IE6、IE7。
		    var newPreview = document.getElementById("newPreview");
		    newPreview.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgFile.value;
		    if(imgFile.value)
	  			newPreview.style.height = "71px";
			if(newPreview.innerHTML.length > 0 ){
				newPreview.innerHTML = "";
			}				
		}	
		
     
     
     function setInfo(field,info){
			document.getElementById(field).style.display = "block";
			document.getElementById(field).innerHTML = "<font color='red'>" + info + "</font>";
		}
		
		function showFun(){
		    var str=document.getElementById("funcid").value;
			var item=window.showModalDialog("${ctx}/user/user_showFun.action?funcstr="+ str.substring(0,2),window,"scroll:no;dialogHeight=500px;dialogWidth=420px;");
		var names ="";
        var ids ="";
	   if(item != null){
	    
	          names += item[0][0];
	          ids += item[0][1];
	      }
      	document.getElementById("funcid").value = ids;
		}	
		function modifyBuy(){
				var name = document.getElementById("productBuyer.buyerPost").value;

			if(name.length>10 ){
			   document.getElementById("errName").innerHTML = "<font color='red'>邮政编码不能超过10字符</font>";
			   return false;
			}
			 document.forms[0].submit();
				 
			}	
</script>

</head>
<link href="${ctx}/css/main/base.css" rel="stylesheet" type="text/css"/>
<link href="${ctx}/css/main/main.css" rel="stylesheet" type="text/css"/>
<body>
<div id="main">
<div class="zdsz" id="select1">
		<div class="tab"><a href="${ctx}/product/productBuyer!index.action"><h3>订单列表</h3></a><h3 class="sel">订单修改</h3></div>
		<div class="zd_gut">
		<ul class="block">
		<li>
<form name="form1" action="${ctx}/product/productBuyer!modifyProductBuyer.action" method="post"  enctype="multipart/form-data" >
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="${ctx }/images/maintopbg.gif">
  <tr>
    <td align="left"><img src="${ctx }/images/maintop.gif" width="7" height="12" /></td>
  </tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" 
bgcolor="#CCCCCC">
<input type="hidden" id="buyerId" name="productBuyer.buyerId" value="${productBuyer.buyerId }" />
<input type="hidden" id="productId" name="productBuyer.productId" value="${productBuyer.productId}" />
<input type="hidden" id="productName" name="productBuyer.productName" value="${productBuyer.productName}" />
  <tr>
    <td   height="30" align="right" bgcolor="#DFEAF3">订购人姓名：</td>
     <td height="30"  align="left" bgcolor="#FFFFFF" class="tblz5">
      
    	<input type="input" id="buyerName" name="productBuyer.buyerName" value="${productBuyer.buyerName}" />
    </td>
        <td   height="30" align="right" bgcolor="#DFEAF3">电话：</td>
     <td height="30" align="left" bgcolor="#FFFFFF" class="tblz5">
      <input type="input" id="buyerPhone" name="productBuyer.buyerPhone" value="${productBuyer.buyerPhone}" />
    </td>
  </tr>
    <tr>
    <td   height="30" align="right" bgcolor="#DFEAF3">数量：</td>
     <td height="30"  align="left" bgcolor="#FFFFFF" class="tblz5">
      
    	<input type="input" id="buyerNum" name="productBuyer.buyerNum" value="${productBuyer.buyerNum}" />
    </td>
        <td   height="30" align="right" bgcolor="#DFEAF3">邮箱：</td>
     <td height="30" align="left" bgcolor="#FFFFFF" class="tblz5">
      <input type="input" id="buyerEmail" name="productBuyer.buyerEmail" value="${productBuyer.buyerEmail}" />
    </td>
  </tr>
<tr>
    <td   height="30" align="right" bgcolor="#DFEAF3">QQ：</td>
     <td height="30"  align="left" bgcolor="#FFFFFF" class="tblz5">
      
    	<input type="input" id="buyerQq" name="productBuyer.buyerQq" value="${productBuyer.buyerQq}" />
    </td>
        <td   height="30" align="right" bgcolor="#DFEAF3">MSN：</td>
     <td height="30" align="left" bgcolor="#FFFFFF" class="tblz5">
      <input type="input" id="buyerMsn" name="productBuyer.buyerMsn" value="${productBuyer.buyerMsn}" />
    </td>
  </tr>
	
  <tr>
     <td height="30" align="right" bgcolor="#DFEAF3">电话：</td>
     <td height="30" align="left" bgcolor="#FFFFFF" class="tblz5">
      <input type="input" id="buyerCorpTel" name="productBuyer.buyerCorpTel" value="${productBuyer.buyerCorpTel}" />
    </td>
     <td height="30" align="right" bgcolor="#DFEAF3">传真：</td>
     <td height="30"  align="left" bgcolor="#FFFFFF" class="tblz5">
    	<input type="input" id="buyerCorpFax" name="productBuyer.buyerCorpFax" value="${productBuyer.buyerCorpFax}" />
    </td>
    <tr>
  <td   height="30" align="right" bgcolor="#DFEAF3">邮寄地址：</td>
     <td height="30" align="left" bgcolor="#FFFFFF" class="tblz5">
      <input type="input" id="buyerAddress" name="productBuyer.buyerAddress" value="${productBuyer.buyerAddress}" />
    </td>
    <td   height="30" align="right" bgcolor="#DFEAF3">邮政编码：</td>
     <td height="30"  align="left" bgcolor="#FFFFFF" class="tblz5">
      <input type="input" id="buyerPost" name="productBuyer.buyerPost" value="${productBuyer.buyerPost}" /><div id="errName"></div>
    </td>
  </tr>
	<tr>
     <td height="30" align="right" bgcolor="#DFEAF3">订购人公司名称：</td>
     <td height="30"  colspan="3" align="left" bgcolor="#FFFFFF" class="tblz5">
    	<input type="input" id="buyerCorpName" name="productBuyer.buyerCorpName" value="${productBuyer.buyerCorpName}" />
    </td>
  </tr>
  </tr>
   <tr>
    <td height="30" align="right" bgcolor="#DFEAF3">订购人留言：</td>
    <td height="30" colspan="3" align="left" bgcolor="#FFFFFF" class="tblz5">
    <textarea name="productBuyer.buyerLeave"  class="fl_l text1">${productBuyer.buyerLeave}</textarea><div id="errIntro"></div></td>
  </tr>
 
<table height="50" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="150" align="right"><input type="button" onclick="modifyBuy();" value="提交" class="btn"/></td>
    <td width="100" align="right"><input type="reset" value="重置" class="btn"/></td>
  </tr>
</table>
</from>
	</li>
		</ul>
		</div>
	</div>
</div>
</body>
</html>

